package com.mapper;

import com.mybatisflex.core.BaseMapper;
import com.entity.BType;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 商品类型表 映射层。
 *
 * @author admin
 * @since 2024-05-24
 */
@Mapper
public interface BTypeMapper extends BaseMapper<BType> {
    @Select("SELECT * FROM b_type WHERE type_name=#{typeName} and id=#{id}")
    public BType userLogin(BType bType);

    @Insert("INSERT INTO b_type(type_name,id) "+
            "values (#{typeName},#{id})")
    public int insertUser(BType type);
}
